import { createI18n } from 'vue-i18n'		//引入vue-i18n组件
import cn from "@/language/lang/lang.cn"
import en from "@/language/lang/lang.en"
import util from '@/utils/index'
let locale = util.getStorage('language') || 'cn'
let messages = {
  'cn': cn,
  'en': en,
}
const i18n = createI18n({
    legacy: false,
    globalInjection: true,
    locale: locale,
    messages: messages,
});

export default i18n;